/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package amd.database;

/**
 *
 * @author Latiah Dwi Nurachma
 */
public class CannotConnectDBException extends Exception{

    private String dbUrl;

    public CannotConnectDBException(String dbUrl) {
        this.dbUrl = dbUrl;
    }

    public String getConfig(){
        return dbUrl;
    }

    @Override
    public String toString() {
        return "Tidak dapat koneksi ke \'"+ dbUrl + "\'.";
//        return "Tidak dapat berkoneksi ke MySQL server";
    }
}
